/**
 * Cell.h
 * Cocoa Tetris
 *
 * Copyright 2009 Wei Yeh, Evelyn Yung. All rights reserved.
 */

#import <Cocoa/Cocoa.h>
#import "Tetromino.h"

@interface Cell : NSObject {
	NSRect myRect;
	CGFloat myX, myY;
	/* The Tetromino currently occupying this Cell. */
	Tetromino *myTetromino;
}

-(id)initWithX:(unsigned int)x y:(unsigned int)y;

-(bool)markWithTetromino:(Tetromino *)tetromino;
-(void)unmark;
-(bool)isOccupied;
-(void)display;

-(NSRect)rect;
-(unsigned int)y;
-(unsigned int)x;
-(Tetromino *)tetromino;

@end
